package com.lh.createBean;

import lombok.Data;

import java.io.Serializable;

@Data
public class Student implements Cloneable, Serializable {

    private String name;

    private int id;

    @Override
    public Student clone() throws CloneNotSupportedException {
        return (Student)super.clone();
    }

    public Student() {
        System.out.println("调用了无参构造方法!!!");
    }

    public String getObjectAddress() {
        return super.toString();
    }
}
